package io.itit.ecp.admin.bootstrap;

import io.itit.grass.dict.starter.config.DictSerializerConfig;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.util.TimeZone;


@Slf4j
@EnableScheduling
@EnableAsync
@EnableTransactionManagement
@MapperScan({"io.itit.**.mapper"})
@SpringBootApplication(scanBasePackages = {"io.itit"}, exclude = {DictSerializerConfig.class})
public class EcpAdminBootstrapApplication {

    public static void main(String[] args) {
        try {
            TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
            SpringApplication.run(EcpAdminBootstrapApplication.class, args);
        } catch (Exception e) {
            log.error(e.getMessage(), e);
        }
    }

}
